
package com.my.imq.dao;

import java.io.Serializable;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.googlecode.genericdao.dao.jpa.GenericDAOImpl;
import com.googlecode.genericdao.search.jpa.JPASearchProcessor;

/**
 * @author <a href="MABDELOUHAB">MABDELOUHAB</a>
 * created 25 janv. 2013
 * @since 
 * @version $Id$
 */
@Repository
public class BaseDAO<T, ID extends Serializable> extends GenericDAOImpl<T, ID> {
        @Override
        @PersistenceContext
        public void setEntityManager(EntityManager entityManager) {
                super.setEntityManager(entityManager);
        }
        
        @Override
        @Autowired
        public void setSearchProcessor(JPASearchProcessor searchProcessor) {
                super.setSearchProcessor(searchProcessor);
        }
}

